#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QCheckBox>
#include <QPushButton>
#include <QPlainTextEdit>
#include <QRadioButton>

class Dialog : public QDialog
{
    Q_OBJECT

public:
    Dialog(QWidget *parent = nullptr);
    ~Dialog();

private:
    QPlainTextEdit *textEdit;
    QCheckBox *checkBoxUnder, *checkBoxItalic, *checkBoxBold;
    QRadioButton *rBtnBlack, *rBtnBlue, *rBtnRed;
    QPushButton *btnOk, *btnCancel, *btnClose;

    void initUI();
    void initSignalSlots();

private slots:
    void onCheckBoxUnder(bool checked);
    void onCheckBoxItalic(bool checked);
    void onCheckBoxBold(bool checked);
    void setTextColor();
};
#endif // DIALOG_H
